// import httpRequest from './axios'
import httpRequest from './fetch'
import handle from './apiHandle'
import host from './host'

export default function request(url, options) {
  return httpRequest((url.indexOf("http://")>-1? url : host + url), options).then(handle)
}
